-
-
Notifications
You must be signed in to change notification settings - Fork 143
fix: #1212 allow Series.name in pivot_table #1216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: #1212 allow Series.name in pivot_table #1216
Conversation
ca9c44e
to
682aa19
Compare
It turns out that in |
pandas-stubs/core/reshape/pivot.pyi
Outdated
PivotTableIndexTypes: TypeAlias = Label | Sequence[HashableT1] | Series | Grouper | None | ||
PivotTableColumnsTypes: TypeAlias = ( | ||
Label | Sequence[HashableT2] | Series | Grouper | None | ||
) | ||
PivotTableValuesTypes: TypeAlias = Label | Sequence[HashableT3] | None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make these private by preceding the names with an underscore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
within stub files, that is OK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @cmp0xff
assert_type()
to assert the type of any return value